package com.zxy.config.utils;

import cn.hutool.json.JSONObject;
import cn.hutool.json.JSONUtil;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * 网络请求类
 */
public class NetWorkHandlerUtil {


    public static void println(HttpServletResponse response,JSONObject jsonObject) throws IOException {
        PrintWriter writer = response.getWriter();
        writer.write(jsonObject.toString());
        writer.flush();
        writer.close();
    }

}
